package com.cbg.bus.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.cbg.base.core.SuperEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author chenbing
 * @since 2018-12-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_order")
@NoArgsConstructor
@AllArgsConstructor
public class Order extends SuperEntity<Order> {

    private static final long serialVersionUID = 1L;

    /**
     * 订单唯一编号
     */
    private String outTradeNo;

    /**
     * 订单状态
     */
    private Integer status;

    /**
     * 订单价格
     */
    private BigDecimal total;

    /**
     * 关联车票id
     */
    private String ticketId;


}
